Function Name:
available_timezones
Function Signature:
available_timezones()
Overview:
-
The function returns a set of time zones from the IANA time zone database of the system.
-
The returned strings are of the form "Area/Location". Area could be the name of the continent or the name of the ocean. E.g., America/Phoenix, Pacific/Honolulu.
Parameters:
None
Return Value:
None
Example:
# Example Python program that retrieves import zoneinfo # Get the time zones print("Set of time zones from the IANA database:"); |
Output:
Set of time zones from the IANA database: {'America/North_Dakota/New_Salem', 'America/Jamaica', 'US/Pacific-New', 'America/Anguilla', 'Australia/Lindeman', 'America/Menominee', 'Indian/Mauritius', 'Africa/Casablanca', 'Eire', 'Antarctica/Macquarie', 'US/Alaska', 'Asia/Baghdad', 'GMT', 'Asia/Kamchatka', 'Etc/GMT-5', 'Europe/Guernsey', 'Atlantic/South_Georgia', 'America/St_Vincent', 'Africa/Dakar', 'Pacific/Enderbury', 'America/Resolute', 'America/Argentina/Jujuy', 'Africa/Cairo', 'Europe/Belfast', 'America/Kentucky/Monticello', 'Europe/Warsaw', 'America/Bogota', 'Asia/Khandyga', 'Asia/Tehran', 'America/Argentina/San_Juan', 'Canada/Pacific', 'Australia/Yancowinna', 'Pacific/Honolulu', 'Africa/Johannesburg', 'Asia/Ashkhabad', 'America/Porto_Acre', 'Africa/Algiers', 'Indian/Cocos', 'Asia/Omsk', 'Asia/Amman', 'GMT+0', 'America/La_Paz', 'Africa/Lome', 'America/Curacao', 'US/Central', 'Antarctica/McMurdo', 'Europe/Stockholm', 'America/Guatemala', 'Pacific/Fakaofo', 'America/Godthab', 'Europe/Podgorica', 'Pacific/Funafuti', 'Asia/Jakarta', 'Pacific/Tongatapu', 'Africa/Monrovia', 'America/Monterrey', 'Asia/Yekaterinburg', 'Africa/Kinshasa', 'Africa/Lusaka', 'America/Belize', 'Singapore', 'Pacific/Ponape', 'Asia/Krasnoyarsk', 'America/Thunder_Bay', 'GMT-0', 'Africa/Ceuta', 'Europe/Tallinn', 'Turkey', 'Asia/Macao', 'GB-Eire', 'America/Glace_Bay', 'Africa/Asmera', 'Antarctica/South_Pole', 'Pacific/Palau', 'America/Araguaina', 'Mexico/BajaSur', 'America/Porto_Velho', 'Pacific/Chatham', 'America/Catamarca', 'Asia/Dili', 'America/Belem', 'Australia/West', 'Antarctica/Troll', 'America/Santiago', 'Africa/Nouakchott', 'America/Argentina/Ushuaia', 'Canada/Eastern', 'Europe/Busingen', 'Asia/Rangoon', 'Asia/Thimphu', 'CET', 'Asia/Dhaka', 'Canada/Central', 'Pacific/Kosrae', 'Europe/Berlin', 'America/Tortola', 'Australia/Victoria', 'Africa/Windhoek', 'US/East-Indiana', 'Europe/Minsk', 'America/Louisville', 'America/Detroit', 'Indian/Comoro', 'Etc/GMT+7', 'Europe/Rome', 'America/St_Johns', 'Europe/Tiraspol', 'America/Argentina/San_Luis', 'America/Nipigon', 'America/Panama', 'Etc/GMT-8', 'America/Chicago', 'Asia/Almaty', 'Europe/Vaduz', 'Africa/Luanda', 'Asia/Choibalsan', 'America/Virgin', 'Europe/Zurich', 'America/Boise', 'Africa/Ndjamena', 'America/Bahia_Banderas', 'Pacific/Norfolk', 'Australia/Queensland', 'Etc/GMT-0', 'Asia/Hebron', 'Cuba', 'America/Nassau', 'America/Argentina/Cordoba', 'Asia/Calcutta', 'Asia/Pontianak', 'Africa/Libreville', 'GMT0', 'America/Maceio', 'Etc/GMT-2', 'Africa/Freetown', 'Asia/Tbilisi', 'America/Dawson', 'America/Mexico_City', 'Indian/Mayotte', 'Africa/Dar_es_Salaam', 'Etc/GMT-14', 'Mexico/BajaNorte', 'Europe/Samara', 'MST', 'Africa/Abidjan', 'Asia/Sakhalin', 'America/Mazatlan', 'Asia/Yangon', 'Atlantic/Madeira', 'Pacific/Easter', 'Poland', 'America/Argentina/La_Rioja', 'America/Fort_Wayne', 'Pacific/Guadalcanal', 'America/Yakutat', 'Pacific/Wake', 'Asia/Tomsk', 'Europe/Simferopol', 'Africa/Ouagadougou', 'Factory', 'Asia/Singapore', 'America/Thule', 'America/Havana', 'Etc/GMT-11', 'Etc/GMT+4', 'Asia/Harbin', 'America/Chihuahua', 'America/Indiana/Marengo', 'Australia/Darwin', 'Asia/Vientiane', 'Europe/Tirane', 'Asia/Aqtobe', 'Pacific/Noumea', 'Atlantic/Faeroe', 'Etc/GMT0', 'Asia/Riyadh', 'Brazil/East', 'Europe/Ulyanovsk', 'Asia/Karachi', 'America/Inuvik', 'Pacific/Wallis', 'Asia/Seoul', 'Africa/Djibouti', 'Etc/GMT-12', 'US/Mountain', 'Africa/Lagos', 'US/Aleutian', 'EST5EDT', 'Asia/Chita', 'Asia/Kuala_Lumpur', 'Greenwich', 'Asia/Saigon', 'America/Campo_Grande', 'Europe/Malta', 'Etc/GMT-13', 'Asia/Famagusta', 'Pacific/Majuro', 'Australia/NSW', 'Australia/Currie', 'Africa/Mbabane', 'America/Cayman', 'Asia/Baku', 'Asia/Taipei', 'Africa/Mogadishu', 'Etc/GMT-1', 'America/New_York', 'Canada/Mountain', 'America/Antigua', 'Antarctica/Vostok', 'America/North_Dakota/Center', 'Etc/GMT+8', 'America/Ojinaga', 'Pacific/Yap', 'Pacific/Chuuk', 'Africa/Tunis', 'America/Goose_Bay', 'Asia/Tokyo', 'Pacific/Kwajalein', 'America/Guadeloupe', 'Australia/Tasmania', 'Pacific/Guam', 'Pacific/Midway', 'Asia/Chongqing', 'Libya', 'Etc/GMT+12', 'America/Scoresbysund', 'Arctic/Longyearbyen', 'US/Indiana-Starke', 'Europe/London', 'America/Montreal', 'Asia/Tashkent', 'Africa/Accra', 'Australia/Broken_Hill', 'Antarctica/DumontDUrville', 'Africa/Gaborone', 'America/Aruba', 'Asia/Hong_Kong', 'Australia/Brisbane', 'Asia/Nicosia', 'Etc/GMT-3', 'W-SU', 'Pacific/Efate', 'America/Toronto', 'Etc/GMT+11', 'Indian/Antananarivo', 'PRC', 'US/Arizona', 'America/Shiprock', 'Africa/Juba', 'America/Cuiaba', 'Europe/Chisinau', 'Etc/GMT+2', 'America/Eirunepe', 'Africa/Sao_Tome', 'Pacific/Kiritimati', 'Australia/Perth', 'Australia/Melbourne', 'WET', 'Asia/Kashgar', 'America/Phoenix', 'America/Marigot', 'America/Argentina/Mendoza', 'America/Port-au-Prince', 'America/Argentina/ComodRivadavia', 'Europe/Kiev', 'Australia/Lord_Howe', 'Iceland', 'Asia/Makassar', 'Australia/Eucla', 'America/Miquelon', 'Asia/Kolkata', 'Asia/Ulaanbaatar', 'America/Indiana/Vevay', 'Europe/Uzhgorod', 'Pacific/Saipan', 'Etc/GMT-10', 'Europe/Skopje', 'Europe/San_Marino', 'Atlantic/Cape_Verde', 'Pacific/Gambier', 'Europe/Bucharest', 'Atlantic/Faroe', 'America/Regina', 'NZ', 'Europe/Sarajevo', 'America/Buenos_Aires', 'Asia/Ust-Nera', 'Asia/Novokuznetsk', 'America/Guyana', 'Canada/Yukon', 'Zulu', 'America/Yellowknife', 'Antarctica/Syowa', 'Iran', 'Asia/Katmandu', 'America/Cancun', 'Asia/Ujung_Pandang', 'Pacific/Johnston', 'America/Fortaleza', 'Africa/Bangui', 'Asia/Jerusalem', 'America/Vancouver', 'Asia/Anadyr', 'Africa/Addis_Ababa', 'America/Bahia', 'Africa/Conakry', 'America/Sao_Paulo', 'Etc/GMT+10', 'Africa/Kigali', 'America/El_Salvador', 'Atlantic/St_Helena', 'Asia/Muscat', 'Brazil/West', 'Etc/UTC', 'Europe/Volgograd', 'Africa/Malabo', 'Europe/Bratislava', 'Australia/Adelaide', 'Europe/Astrakhan', 'America/Swift_Current', 'Etc/GMT+0', 'Asia/Kuwait', 'Etc/GMT', 'Europe/Riga', 'Europe/Luxembourg', 'Navajo', 'Asia/Oral', 'Europe/Kirov', 'Europe/Brussels', 'Pacific/Apia', 'Europe/Sofia', 'ROK', 'ROC', 'Europe/Oslo', 'Asia/Dushanbe', 'Europe/Moscow', 'Europe/Belgrade', 'PST8PDT', 'Jamaica', 'Australia/LHI', 'Etc/GMT+6', 'Asia/Ho_Chi_Minh', 'America/Guayaquil', 'America/Argentina/Buenos_Aires', 'America/Argentina/Salta', 'US/Michigan', 'Europe/Jersey', 'Africa/Banjul', 'America/Merida', 'Asia/Samarkand', 'Africa/Bissau', 'Australia/North', 'America/Indiana/Vincennes', 'Asia/Irkutsk', 'Africa/Bujumbura', 'Africa/Maputo', 'America/Tijuana', 'Mexico/General', 'America/Rankin_Inlet', 'US/Samoa', 'America/Port_of_Spain', 'America/Los_Angeles', 'Antarctica/Davis', 'Europe/Vatican', 'Europe/Copenhagen', 'Indian/Christmas', 'America/Costa_Rica', 'America/Noronha', 'America/Asuncion', 'Asia/Hovd', 'Europe/Gibraltar', 'America/St_Thomas', 'America/Grand_Turk', 'America/Mendoza', 'Pacific/Tahiti', 'Asia/Bishkek', 'America/Indiana/Petersburg', 'Asia/Srednekolymsk', 'America/Fort_Nelson', 'America/Tegucigalpa', 'Australia/South', 'US/Pacific', 'Europe/Istanbul', 'Australia/Sydney', 'NZ-CHAT', 'UCT', 'Etc/GMT+5', 'Asia/Kuching', 'Indian/Reunion', 'Asia/Thimbu', 'Pacific/Pago_Pago', 'America/Lower_Princes', 'Europe/Kaliningrad', 'Egypt', 'Chile/Continental', 'Asia/Magadan', 'US/Hawaii', 'MET', 'Asia/Yakutsk', 'Australia/Hobart', 'Antarctica/Rothera', 'Africa/Blantyre', 'America/Creston', 'America/Indiana/Knox', 'America/Indiana/Indianapolis', 'Etc/GMT+1', 'Africa/Khartoum', 'Europe/Amsterdam', 'Asia/Kabul', 'America/Puerto_Rico', 'Europe/Prague', 'Canada/Newfoundland', 'Kwajalein', 'America/Matamoros', 'Europe/Vienna', 'Europe/Vilnius', 'Australia/ACT', 'Europe/Madrid', 'America/Pangnirtung', 'America/St_Kitts', 'Africa/Lubumbashi', 'Pacific/Niue', 'Pacific/Samoa', 'America/Halifax', 'America/Grenada', 'Europe/Monaco', 'Atlantic/Jan_Mayen', 'America/Argentina/Rio_Gallegos', 'Pacific/Bougainville', 'America/Dawson_Creek', 'Australia/Canberra', 'Africa/Timbuktu', 'Asia/Damascus', 'Indian/Kerguelen', 'Brazil/DeNoronha', 'Antarctica/Casey', 'America/Kralendijk', 'Asia/Qatar', 'Indian/Mahe', 'Asia/Gaza', 'Africa/Nairobi', 'America/Metlakatla', 'Israel', 'Pacific/Pohnpei', 'EET', 'Africa/Bamako', 'America/Hermosillo', 'Antarctica/Palmer', 'Pacific/Fiji', 'America/Kentucky/Louisville', 'Indian/Chagos', 'Etc/GMT-7', 'America/Rosario', 'America/Moncton', 'America/Montevideo', 'Etc/Greenwich', 'Pacific/Auckland', 'Etc/GMT+9', 'Pacific/Rarotonga', 'America/Santarem', 'America/Ensenada', 'Asia/Phnom_Penh', 'Asia/Macau', 'Europe/Zagreb', 'Antarctica/Mawson', 'America/Sitka', 'Europe/Zaporozhye', 'Europe/Nicosia', 'Asia/Dubai', 'America/Denver', 'Japan', 'Asia/Aqtau', 'Europe/Andorra', 'Africa/Maseru', 'America/Cambridge_Bay', 'America/Indiana/Winamac', 'EST', 'Europe/Isle_of_Man', 'Atlantic/Reykjavik', 'Pacific/Nauru', 'Etc/GMT-6', 'Europe/Athens', 'Canada/Saskatchewan', 'Atlantic/Canary', 'Africa/Kampala', 'America/Edmonton', 'Europe/Dublin', 'Europe/Budapest', 'Asia/Ashgabat', 'Asia/Novosibirsk', 'America/Lima', 'Asia/Jayapura', 'America/St_Lucia', 'Chile/EasterIsland', 'Asia/Urumqi', 'America/Rio_Branco', 'Canada/Atlantic', 'Asia/Tel_Aviv', 'Africa/Tripoli', 'Asia/Aden', 'America/Cayenne', 'HST', 'Africa/Harare', 'America/Paramaribo', 'America/Santo_Domingo', 'Asia/Chungking', 'Africa/Brazzaville', 'Etc/Universal', 'Pacific/Port_Moresby', 'America/Indianapolis', 'Asia/Yerevan', 'America/Jujuy', 'Asia/Colombo', 'Pacific/Tarawa', 'Etc/UCT', 'Asia/Barnaul', 'America/Winnipeg', 'America/Nome', 'Europe/Lisbon', 'America/St_Barthelemy', 'America/Blanc-Sablon', 'Asia/Bahrain', 'America/Atka', 'America/Argentina/Tucuman', 'America/Caracas', 'Atlantic/Bermuda', 'Brazil/Acre', 'CST6CDT', 'Asia/Qyzylorda', 'Portugal', 'Atlantic/Stanley', 'Atlantic/Azores', 'America/North_Dakota/Beulah', 'America/Indiana/Tell_City', 'Indian/Maldives', 'Asia/Bangkok', 'America/Atikokan', 'America/Manaus', 'America/Rainy_River', 'America/Juneau', 'Asia/Dacca', 'Etc/GMT+3', 'America/Dominica', 'MST7MDT', 'America/Knox_IN', 'America/Barbados', 'Europe/Mariehamn', 'Europe/Saratov', 'Europe/Ljubljana', 'America/Recife', 'America/Anchorage', 'America/Danmarkshavn', 'Africa/El_Aaiun', 'Asia/Vladivostok', 'Asia/Shanghai', 'Etc/Zulu', 'Asia/Kathmandu', 'America/Argentina/Catamarca', 'Europe/Paris', 'Etc/GMT-4', 'America/Coral_Harbour', 'Hongkong', 'America/Montserrat', 'Pacific/Marquesas', 'Pacific/Pitcairn', 'America/Boa_Vista', 'Pacific/Truk', 'Asia/Istanbul', 'America/Iqaluit', 'Africa/Porto-Novo', 'America/Cordoba', 'Asia/Atyrau', 'Asia/Pyongyang', 'America/Santa_Isabel', 'Etc/GMT-9', 'Africa/Asmara', 'Asia/Brunei', 'GB', 'Europe/Helsinki', 'UTC', 'Universal', 'Asia/Qostanay', 'Asia/Beirut', 'America/Managua', 'Africa/Douala', 'Pacific/Galapagos', 'America/Punta_Arenas', 'Africa/Niamey', 'America/Whitehorse', 'US/Eastern', 'America/Nuuk', 'Asia/Manila', 'America/Martinique', 'Asia/Ulan_Bator', 'America/Adak'} |